from django.conf.urls import url
from blog_app import views

urlpatterns = [

    url(r'^$', views.index),
    url(r'^index$', views.index),
    url(r'^user/register$',views.register),
    url(r'^user/login$',views.login),
    url(r'^user/checkUsername$',views.check_username),
    url(r'^user/checkPhone$',views.check_phone),
    url(r'^user/logout$',views.logout),
    url(r'^blog/writeBlogPage$',views.write_blog_page),
    url(r'^blog/saveBlog$',views.save_blog),
    url(r'^blog/pageQuery$',views.query_page),
    url(r'^uploadImg$',views.upload_img),
    url(r'^blog/findBlogById',views.blog_detail),

]